﻿@model IEnumerable<GameSchoolWeb.Models.Course>
<div id="templatemo_content">
    @{
        ViewBag.Title = "Listi yfir öll námskeið";
    }
    <div class="templatemo_box">
        <h2>
            Listi yfir öll námskeið</h2>
        <div class="body">
            @if (User.IsInRole("Umsjonarmadur"))
            { 
                <table>
                    @foreach (var item in Model)
                    {
                        <tr>
                            <td>
                                @Html.ActionLink(item.strName, "EditCourse", new { id = item.id })
                            </td>
                        </tr>

                    }
                </table>
            }
        </div>
        <div class="box_bottom">
            <span></span>
        </div>
    </div>
</div>
